package com.example.chcrm.entity.consignor;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.example.chcrm.entity.common.OperateRecord;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Author 邹
 * @Date 2025/4/20 15:39
 * @Version 1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class CustomerCarBrand implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.INPUT)
    private String id;
    @NotBlank(message = "品牌不能为空")
    @Excel(name = "品牌名称", width = 20)
    private String brand;            //品牌
    private Integer status;            //状态 1启用，0停用
    @Excel(name = "状态", width = 10)
    @TableField(exist = false)
    private String statusType;
    @TableField("is_deleted")
    private Integer isDeleted;   //是否删除
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;    //添加时间

    //----分页----
    @TableField(exist = false)
    private Integer page = 1;
    @TableField(exist = false)
    private Integer rows = 10;
    @TableField(exist = false)
    private List<OperateRecord> operateRecordList;
    @TableField(exist = false)
    private Integer count ;//数量统计
}
